package org.wk.common.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName	: SmsSendStatus
 * @Package		：org.wk.common.enums
 * @Author df.w 
 * @Create Time	：2018年5月3日 下午4:35:29
 * @Description	: 短信类型
 */ 
public enum SmsCodeType {
	REGISTER("register","注册"),
	RESET_PASSWORD("reset_password","重置密码"),
	MODIFY_PASSWORD("modify_password","修改密码"),
	LOGIN("login","登录"),
	EXCHANGE_CNY("exchange_cny","兑换现金"),
	SETTING_LEVEL_TWO_PASSWORD("setting_level_two_password","设置二级密码");
	private String code;
	private String name;
	private SmsCodeType(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	
	public static SmsCodeType containsCode(String code) {
		for (SmsCodeType item : SmsCodeType.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}		
		return null;
	}
			
	/**
	 * @return the code
	 */
	
	public String getCode() {
		return code;
	}
	
	/**
	 * @param code 要设置的 code
	 */
	
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	
	public String getName() {
		return name;
	}
	
	/**
	 * @param name 要设置的 name
	 */
	
	public void setName(String name) {
		this.name = name;
	}
	
	
	
	
	
}
